package com.example.demo2hw05regist;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

public interface UserRepository extends JpaRepository<User, Long> {
    @Query(value = "select password from User where username = :username")
    String findpassword(@Param("username") String username);
}
